package com.smart.order.controller;

import com.smart.order.reqeust.OrderRequestParams;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 分布式锁
 * 分布式事务
 */
@RestController
@RequestMapping("/order")
@Validated
public class OrderController {

    @PostMapping("/")
    public String createOrder(@RequestBody OrderRequestParams orderRequestParams) {
        return null;
    }

    @DeleteMapping("/")
    public String delOrder() {
        return null;
    }



}
